package com.demo2do.fms.admin.service.business;

import java.util.List;
import java.util.Map;

import com.demo2do.fms.admin.entity.search.business.ReimburseSearch;
import com.demo2do.fms.admin.entity.search.business.SapSearch;
import com.demo2do.fms.admin.entity.security.Login;

/**
 * 
 * @author Ysy
 *
 */
public interface BalanceService {

    /**
     * 回单确认
     * 
     * @param dispatchOrderId
     * @param itemIds
     * @param itemQuantity
     * @param operator
     */
    public void accomplishConfirm(Long dispatchOrderId, List<Long> itemIds, Integer itemQuantity, Login operator);

    /**
     * 报销单查询
     * 
     * @param search
     * @return
     */
    public int countReimburse(ReimburseSearch search);
    
    /**
     * 报销单列表
     * 
     * @param search
     * @return
     */
    public List<Map<String, Object>> listReimburse(ReimburseSearch search);
    
    /**
     * 报销
     * 
     * @param dispatchOrderIds
     * @param shipmentOrderItems
     * @param operator
     */
    public void reimburse(List<Long> dispatchOrderIds, List<String> shipmentOrderItems, Login operator);
    
    /**
     * 查询勾选订单
     * 
     * @param search
     * @return
     */
    public List<Map<String, Object>> listSap(SapSearch search);
    
    /**
     * 勾选订单送Sap
     * 
     * @param shipmentFinanceIds
     */
    public void deliverOrder(List<Long> shipmentFinanceIds);

    /**
     * 获取订单状态
     * 
     * @param financeId
     * @param shipmentFinanceId
     * @return
     */
    public int getOrderStatus(Long financeId, Long shipmentFinanceId);
    
}